import http from "@/utils/http"

// 获取详情数据
export const getDetail = (id) => http.get('/goods', {
  params: {id}
})

// 获取热榜商品
export const fetchHotGoodsAPI = ({ id, type, limit = 3 }) => http.get('goods/hot',{
  params: {
    id,
    type,
    limit
  }
})
